<?php
/// 本文件用来根据图书id取得图书相关资料
// 参数  bid=[id in book table]
require_once("cn/solor/comic/Facade.php");
error_reporting(0);

$bid = $_REQUEST["bid"];
$bid = intval($bid);

if (empty($bid))
{
    $data = array("isErr" => true, "err" => array("errCode"=>0, "errType" => 0, "errMsg" => "you must specify a bid"));
}
else
{
    $facade = ComicFacade::instance();
    $data = $facade->getJsonByBookId(1);
}
$jsondata = json_encode($data);
echo $jsondata;
?>
